package com.liukai.bishe.ui.viewHolder;

import android.view.View;

import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import butterknife.BindView;
import butterknife.ButterKnife;

public abstract class BaseViewHolder extends RecyclerView.ViewHolder {


    public BaseViewHolder(@NonNull View itemView) {
        super(itemView);

        ButterKnife.bind(this,itemView);

        initView(itemView);
        initListener(itemView);

    }

    /**
     * 初始化组件
     * @param itemView
     */
    protected abstract void initView(View itemView);

    /**
     * 初始化监听
     * @param itemView
     */
    protected abstract void initListener(View itemView);

}
